{% extends "base.html" %}

{% block title %}All tags{% endblock %}

{% block content_header %}All tags{% endblock %}

{% block main_content %}
{% if object_list %}

<ul>
{% for tag in object_list %}
<li><a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a></li>
{% endfor %}
</ul>

<p class="pagination">{% if has_previous %}<a href="?page={{ previous }}">&lt; Previous {{ results_per_page }}</a>{% endif %}&nbsp;&nbsp;{% if has_next %}<a href="?page={{ next }}">Next {{ results_per_page }} &gt;</a>{% endif %}</p>
{% else %}
<p>No tags have been used yet.</p>
{% endif %}

{% endblock %}

{% block sidebar %}
<p>There are currently {{ hits }} tag{{ hits|pluralize }} in use.</p>
<p>Currently, the most-used tags are:</p>
{% load popular %}
{% get_top_tags 5 as top_tags %}
<ol>
{% for tag in top_tags %}
<li><a href="{{ tag.get_absolute_url }}">{{ tag.name }}</a></li>
{% endfor %}
</ol>
{% endblock %}